package com.traffic.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 亲人移居信息对象 family_migrate
 * 
 * @author zzs
 * @date 2024-11-11
 */
public class FamilyMigrate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 亲属姓名 */
    @Excel(name = "亲属姓名")
    private String famliyName;

    /** 与本人关系 */
    @Excel(name = "与本人关系")
    private String familyRelation;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String famliyNumber;

    /** 移居国家（地区） */
    @Excel(name = "移居国家", readConverterExp = "地=区")
    private String famliyMigrateArea;

    /** 现住城市 */
    @Excel(name = "现住城市")
    private String famliyLiveCity;

    /** 移居证件号码 */
    @Excel(name = "移居证件号码")
    private String famliyMigrateNumber;

    /** 移居类别（外国国籍、永久居留资格、长期居留许可） */
    @Excel(name = "移居类别", readConverterExp = "外=国国籍、永久居留资格、长期居留许可")
    private String famliyMigrateType;

    /** 移居日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "移居日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date famliyMigrateDate;

    /** 备注 */
    @Excel(name = "备注")
    private String famliyRemark;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFamliyName(String famliyName) 
    {
        this.famliyName = famliyName;
    }

    public String getFamliyName() 
    {
        return famliyName;
    }
    public void setFamilyRelation(String familyRelation) 
    {
        this.familyRelation = familyRelation;
    }

    public String getFamilyRelation() 
    {
        return familyRelation;
    }
    public void setFamliyNumber(String famliyNumber) 
    {
        this.famliyNumber = famliyNumber;
    }

    public String getFamliyNumber() 
    {
        return famliyNumber;
    }
    public void setFamliyMigrateArea(String famliyMigrateArea) 
    {
        this.famliyMigrateArea = famliyMigrateArea;
    }

    public String getFamliyMigrateArea() 
    {
        return famliyMigrateArea;
    }
    public void setFamliyLiveCity(String famliyLiveCity) 
    {
        this.famliyLiveCity = famliyLiveCity;
    }

    public String getFamliyLiveCity() 
    {
        return famliyLiveCity;
    }
    public void setFamliyMigrateNumber(String famliyMigrateNumber) 
    {
        this.famliyMigrateNumber = famliyMigrateNumber;
    }

    public String getFamliyMigrateNumber() 
    {
        return famliyMigrateNumber;
    }
    public void setFamliyMigrateType(String famliyMigrateType) 
    {
        this.famliyMigrateType = famliyMigrateType;
    }

    public String getFamliyMigrateType() 
    {
        return famliyMigrateType;
    }
    public void setFamliyMigrateDate(Date famliyMigrateDate) 
    {
        this.famliyMigrateDate = famliyMigrateDate;
    }

    public Date getFamliyMigrateDate() 
    {
        return famliyMigrateDate;
    }
    public void setFamliyRemark(String famliyRemark) 
    {
        this.famliyRemark = famliyRemark;
    }

    public String getFamliyRemark() 
    {
        return famliyRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("famliyName", getFamliyName())
            .append("familyRelation", getFamilyRelation())
            .append("famliyNumber", getFamliyNumber())
            .append("famliyMigrateArea", getFamliyMigrateArea())
            .append("famliyLiveCity", getFamliyLiveCity())
            .append("famliyMigrateNumber", getFamliyMigrateNumber())
            .append("famliyMigrateType", getFamliyMigrateType())
            .append("famliyMigrateDate", getFamliyMigrateDate())
            .append("famliyRemark", getFamliyRemark())
            .toString();
    }
}
